@import 'normalize.css';
@import 'animate.min.css';

.btn-open {
  font-size: 3em;
}

.navigation {
  width: 1000px;
  height: 600px;
  background: #efefef;
  border: 1px solid #ccc;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  // display: none;
  // opacity: 0;
  transition: all 0.3s;
  font-family: "Microsoft Yahei";

  input {
    font-family: "Microsoft Yahei";
  }

  .axisx,
  .axisy {
    position: absolute;
    opacity: 0.6;
    filter: alpha(opacity=60);
  }

  .axisx {
    width: 286px;
    height: 43px;
    background: url("../img/x.png") no-repeat;
    left: 157px;
    top: 22px;
  }

  .axisy {
    width: 39px;
    height: 244px;
    background: url("../img/y.png") no-repeat;
    top: 35px;
    left: 146px;
  }
}

.box-attr {
  position: fixed;
  border: 1px solid black;
  display: none;
  // left: 100px;
  padding: 5px;
  background: white;
  box-shadow: 0 0 5px rgba(black, .3);
  font-family: "Microsoft Yahei";
  border-radius: 5px;
  box-shadow: 1px 1px 3px rgba(black,.6);

  p {
    margin: 2px 0;
    padding: 5px;
    color: rgb(119, 119, 119);

    &:nth-of-type(2n) {
      border-bottom: 1px solid #ccc;
    }

    span {
      font-weight: bold;
      color: black;
    }

    .r,
    .x,
    .y {
      width: 2em;
      border-radius: 5px;
      border: 1px solid #b8b8b8;
      margin-left: 10px;
    }
  }

  input {
    font-family: "Microsoft Yahei";
    outline: none;
  }

  input[type=button] {
    margin: 10px 0;
  }

  input[type=button]:nth-of-type(2) {
    background: #33bdef;
    background-image: linear-gradient(to bottom, #33bdef, #019ad2);
    border-radius: 5px;
    box-shadow: 0 1px 0 0 #f0f7fa;
    color: #ffffff;
    font-size: 14px;
    padding: 5px 0;
    border: solid #057fd0 1px;
    cursor: pointer;
    width: 45%;
    box-sizing: border-box;
    margin-left: 7%;

    &:hover {
      color: #ffffff;
      background: #019ad2;
    }
  }

  input[type=button]:nth-of-type(1) {
    text-shadow: 0 -1px 0 #7a2a1d;
    box-shadow: inset 0 34px 0 -20px #b54b3a;
    color: #ffffff;
    font-size: 14px;
    background: #a73f2d;
    padding: 5px 0;
    width: 45%;
    border: solid #241d13 1px;
    cursor: pointer;
    border-radius: 5px;
    box-sizing: border-box;

    &:hover {
      color: #ffffff;
      background: #b34332;
      text-decoration: none;
    }
  }
}

.room {
  width: 80%;
  height: 80%;
  background: url("../img/boxline.png");
  position: absolute;
  right: 20px;
  top: 50%;
  // transform: translate(0 ,-50%);
  margin-top: -241px;
  border: 2px solid black;
  overflow: hidden;

  .bookshelf {
    position: absolute;
    // border: 1px solid rgb(121, 121, 121);
    background: url("../img/shelf.png") 0 0 no-repeat;
    background-size: 100% 100%;
    cursor: move;
  }
}

.control-panel {
  width: 150px;
  height: 600px;
  background: white;
  position: absolute;
  left: 0;
  top: 0;
  border-right: 1px solid #ccc;
  box-shadow: 1px 0 5px rgba(black, .3);
  box-sizing: border-box;
  padding: 5px;
  text-align: center;

  div {
    span {
      display: inline-block;
      width: 60px;
      text-align: left;
    }

    input {
      width: 60px;
      border-radius: 5px;
      border: 1px solid #ccc;
      outline: none;
      padding: 0 2px;
    }
  }

  input[type=button] {
    background: #007dc1;
    background-image: linear-gradient(to bottom, #007dc1, #0061a7);
    border-radius: 3px;
    text-shadow: 0 1px 0 #154682;
    box-shadow: inset 0 1px 0 0 #54a3f7;
    font-family: Arial;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 0;
    border: solid #124d77 1px;
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
    outline: none;

    &:hover {
      color: #ffffff;
      background: #0061a7;
    }
  }
}
